package com.dyl.auth.form;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

//手机号验证码登录的vo
@Data
public class LoginCodeVo {
    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = "^[1]([3][0-9]{1}|59|58|88|89)[0-9]{8}$", message = "手机号格式有误")
    @Length(min = 11, max = 11, message = "手机号必须为11位")
    private String phone;

    @ApiModelProperty(value = "验证码")
        private String codes;

}
